#include "widget.h"
#include "ui_widget.h"
#include<QPixmap>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QPixmap pix(":/asd.png");
    pix = pix.scaled(64,64);//对图片进行缩放
    QCursor cur(pix,2,2);//热点所在的位置
    this->setCursor(cur);
}

Widget::~Widget()
{
    delete ui;
}

